package com.miplus.ccrm.uploadjob.service.qm;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.miplus.ccrm.uploadjob.mapper.*;
import com.miplus.ccrm.uploadjob.pojo.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
* @author pc
* @description 针对表【QM_DATA(质检数据表)】的数据库操作Service实现
* @createDate 2024-12-25 11:54:41
*/
@Slf4j
@Service
public class QmDataServiceImpl extends MPJBaseServiceImpl<QmDataMapper, QmData>
    implements QmDataService{

    @Override
    public int SetQmDataReady(String dataid)
    {
        log.info("SetQmDataReady({}).Ready",dataid);
        return baseMapper.update(null, new UpdateWrapper<QmData>()
                .lambda()
                .eq(QmData::getDataid,dataid)
                .set(QmData::getQmstatus, "1")
        );
    }
}




